# -*- coding: utf-8 -*-

"""
Kay URL dispatch setting.

:copyright: (c) 2009 by Kay Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""

from werkzeug.routing import (
  Map, Rule, Submount,
  EndpointPrefix, RuleTemplate,
)

from meet_at import urls as meet_at_urls

from kay.views.i18n import javascript_catalog

def make_url():
  return Map([
    Rule('/_i18n.js', endpoint='i18n_js',
         defaults={'packages':('meet_at','kay')}),
    Submount('/', meet_at_urls.make_rules())
  ])

all_views = {
  'i18n_js': javascript_catalog,
}
all_views.update(meet_at_urls.all_views)
